home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15739 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  900 b 

  1. Path: otto.inf.fu-berlin.DE!not-for-mail
  2. From: scholz@otto.inf.fu-berlin.de (Enno Scholz)
  3. Newsgroups: comp.lang.c++
  4. Subject: Experiences calling C++ from C?
  5. Followup-To: comp.lang.c++
  6. Date: 06 Apr 1996 23:28:49 GMT
  7. Organization: Freie Universitaet Berlin
  8. Distribution: world
  9. Message-ID: <SCHOLZ.96Apr7012849@otto.inf.fu-berlin.de>
  10. NNTP-Posting-Host: otto.inf.fu-berlin.de (160.45.110.55)
  11. X-Access: 16 17 19
  12.  
  13. Hello,
  14.  
  15.     I would greatly appreciate any help with calling C++ functions
  16. from C! 
  17.     
  18.     I have read the FAQ, I know that one must declare the C++
  19. functions with "extern C++" and I'm passing nothing but void pointers
  20. (no structs), but still my program crashes in the first C++ function:
  21. The gdb stack shows a number of invocations of some unknown-to-me
  22. function _end (), followed by a segmentation fault in a constructor
  23. function I never call.
  24.  
  25.    Any help will be most welcome!
  26.    
  27. Enno
  28.